<extend name="Public/base"/>
<block name="body">

<div class="page-crumb">
	<div class="ui-ctrl ui-crumb"><span class="ui-crumb-node ui-crumb-node-first ui-crumb-node-last">代码位管理</span></div>
</div>

<div class="ui-nav-tab">
	<a class="nav-item" href="/code/index" data-pjax>代码位管理</a>
	<a class="nav-item state-active" href="/codeGroup/index" data-pjax>代码位分组管理</a>
</div>

<div class="layui-main">
	<div class="list-meta">
		<div class="list-action">
			<a class="ui-link skin-add-link" href="javascript:;" onclick="PopModel.openFrame('/codeGroup/create');" target="">新建代码位分组</a>
        </div>
		
		<div class="list-filter">
			<div class="list-batch-operation">
				<a href="javascript:;" class="ui-button state-disabled">删除</a>
			</div>
		</div>
		
	</div>
	
	<!-- 数据列表 -->
	<table class="layui-table list-content-table" lay-skin="nob">
		<colgroup>
			<col width="20">
			<col width="750">
			<col width="100">
			<col width="100">
			<col width="150">
		</colgroup>

		<thead class="list-table-head">
			<tr>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text ui-table-hcell-text-first">
						<input type="checkbox" class="ui-table-select-all" data-index="">
					</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">代码位名称</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">所属媒体</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">创建时间</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">操作</div>
				</th>
			</tr> 
		</thead>
		<tbody class="list-table-body">
			<foreach name="data" item="group">
				<tr>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<input type="checkbox" class="ui-table-multi-select" data-id="{$group.id}">
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$group.group_name}<span class="table-content-addition">ID: {$group.id}</span></div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$group.name}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text"><?php echo date("Y-m-d",$group['update_time']); ?></div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<span class="table-operation" data-command="modify" data-command-args="{$group.id}">编辑</span>
							<span class="table-operation" data-command="remove" data-command-args="{$group.id}">删除</span>
						</div>
					</td>
				</tr>
			</foreach>
			<tr>
				<td align="right" nowrap="true" colspan="11">
					<div id="turn-page">
						{$page}
					</div>
				</td>
			</tr>
		</tbody>
	</table>

</div>
<script src="__BACKEND_STATIC__/js/codeGroup/codeGroup.js"></script>
</block>

